<?php


require_once 'zeka.php';  //$conn
header("content-type:text/html;charset=utf-8");
$username = $_POST['username'];
$password = $_POST['password'];
$logss_time = time();

$sql ="
INSERT INTO  user  (
 id  ,
 account  ,
 password  ,
 logss_time 
)
VALUES (
NULL ,  '$username',  '$password',  '$logss_time'
);
";

$result = $conn->query($sql);

if($result === false){
    echo "数据库操作失败！！！";
}else{
    header("Location: register.html");
}
print_r($result);



